//
//  CommodityReadyPayTableViewCell.m
//  cityStar
//
//  Created by Hancong on 14/12/26.
//  Copyright (c) 2014年 tiny. All rights reserved.
//

#import "CommodityReadyPayTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation CommodityReadyPayTableViewCell

+(CGFloat) heightOfTableCell
{
    return 85;
}

-(void)configWithGoodCart:(BuycartGood *)goodCart
{
    [self.commodityImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"http://api.icszx.com/image/c/id/%@/w/280/h/240/m/1",goodCart.images]] placeholderImage:[UIImage imageNamed:@"购物车列表_img"]];
    self.labelContent.text = [NSString stringWithFormat:@"%@",goodCart.goods_name];
    self.labelPrice.text = [NSString stringWithFormat:@"￥%@",goodCart.price];
    self.labelNumber.text = [NSString stringWithFormat:@"x%@",goodCart.number];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
